package com.blue.po.system;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serial;
import java.io.Serializable;

import lombok.Data;

/**
 * 系统操作日志表
 *
 * @author nanjie.chen
 * @email 15696471158@163.com
 * @date 2025-04-01
 */
@Data
@TableName("sys_operation_logs")
public class OperationLogsPO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "ID")
    private String id;

    @Schema(description = "操作人")
    private String operator;

    @Schema(description = "ip地址")
    private String ip;

    @Schema(description = "ip归属地址")
    private String address;

    @Schema(description = "请求url")
    private String requestUrl;

    @Schema(description = "参数")
    private String params;

    @Schema(description = "日期")
    private String date;

    @Schema(description = "请求开始时间")
    private String startTimeStamp ;

    @Schema(description = "请求结束时间")
    private String endTimeStamp;

    @Schema(description = "请求耗时")
    private String timeConsumption;

    @Schema(description = "日志追踪ID")
    private String traceId;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private String createTime;


}
